package com.education.demouse.pojo.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 老师查看学生答题详情表 student_answer_details
 *
 * @Author: liftsail
 * @Date: 2022-10-20
 * @Description: 不积跬步无以至千里
 */
@Data
@ColumnWidth(20)
public class StudentAnswerDetails implements Serializable {
    private static final long serialVersionUID=1L;


    @ApiModelProperty(value = "id")
    @ExcelIgnore
    private Integer id;


    @ApiModelProperty(value = "试卷id")
    @ExcelProperty(value = "试卷id",index = 0)
    private Integer paperId;


    @ApiModelProperty(value = "试卷名称")
    @ExcelProperty(value = "试卷名称",index = 1)
    private String paperName;


    @ApiModelProperty(value = "试卷得分")
    @ExcelProperty(value = "试卷得分",index = 2)
    private Double paperScore;
    @ExcelIgnore
    private String paperScoreStr;


    @ApiModelProperty(value = "学生用户id")
    @ExcelProperty(value = "学生用户id",index = 3)
    private Integer stuUserId;


    @ApiModelProperty(value = "学生姓名")
    @ExcelProperty(value = "学生姓名",index = 4)
    private String stuUserName;


    @ApiModelProperty(value = "班级id")
    @ExcelProperty(value = "班级id",index = 5)
    private Integer classId;


    @ApiModelProperty(value = "学生班级名称")
    @ExcelProperty(value = "班级名称",index = 6)
    private String className;


    @ApiModelProperty(value = "老师用户id")
    @ExcelProperty(value = "老师用户id",index = 7)
    private Integer teaUserId;


    @ApiModelProperty(value = "老师姓名")
    @ExcelProperty(value = "老师姓名",index = 8)
    private String teaUserName;


    @ApiModelProperty(value = "试卷满分")
    @ExcelProperty(value = "试卷满分",index = 9)
    private Double fullScore;


    @ApiModelProperty(value = "老师评语")
    @ExcelProperty(value = "老师评语",index = 10)
    private String teaComment;

    //总成绩
    @ExcelIgnore
    private Double totalGrade;

    //平均成绩
    @ExcelIgnore
    private Double averageScore;

    //成绩列表
    @ExcelIgnore
    private List<UserPaperStatistic> userPaperStatisticList;

}